<?php
// +----------------------------------------------------------------------------
// | Tke团队版权所属 [三十年河东三十年河西,莫欺少年穷.!]
// +----------------------------------------------------------------------------
// | Copyright (c) 2014 http://www.itdaodan.com All rights reserved.
// +----------------------------------------------------------------------------
// | Author: sap<913534960@163.com>
// +----------------------------------------------------------------------------
namespace Admin\Service;
/**
 * @todo 品类服务层
 */

class ConfCategoryService{
	
	protected $error            =   '';

	/**
	 * @todo 品类列表
	 * @author sap
	 */
	public function getConfCategoryList($map=array()){
		$map = (array)$map;
		if(empty($map)){
			$this-> error= '查询条件不正确';
			return false;
		}
		return D('Admin/ConfCategory')->getConfCategoryList($map,$field='conf_category_id,conf_category','sort desc,conf_category_id asc');
	}
	
	/**
	 * @todo 返回最后一次错误记录
	 * @return string
	 */
	public function getError(){
		return $this->error;
	}
}
